#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
	int a1,b1,a2,b2;
	double sum1,sum2;
	scanf("%d/%d %d/%d",&a1,&b1,&a2,&b2);
	sum1 = a1*1.0/b1;
	sum2 = a2*1.0/b2;
	if(sum1>sum2)
	printf("%d/%d > %d/%d\n",a1,b1,a2,b2);
	else if(sum1 == sum2)
	printf("%d/%d = %d/%d\n",a1,b1,a2,b2);
	else
	printf("%d/%d < %d/%d\n",a1,b1,a2,b2);
}